addition of logic that removes characters preventing strings from
pairing with their respective control.