I have a string say \"Allentown, pa\"
\"Allentown, pa\"
How to remove the white space in between , and pa using objective c?
,
pa
NSString *sample = @" string with whitespaces"; NSString *escapeWhiteSpaces = [sample stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];