Sample output: Matched: aple to ?? Matched: appe to ?? Matched: peay to ?? Desired output: Matched: aple to Apple Matched: appe to Apple Matched: peay to Pear