accounted for non-letter characters in morsecode problem