Method for converting string of length 1 to a character.