I have a string say \"Allentown, pa\"
\"Allentown, pa\"
How to remove the white space in between , and pa using objective c?
,
pa
- (NSString *)removeWhitespaces { return [[self componentsSeparatedByCharactersInSet: [NSCharacterSet whitespaceCharacterSet]] componentsJoinedByString:@""]; }