I have a string say \"Allentown, pa\"
\"Allentown, pa\"
How to remove the white space in between , and pa using objective c?
,
pa
you can use remove function to remove any substring from the string
- (NSString*)remove:(NSString*)textToRemove fromString:(NSString*)input { return [input stringByReplacingOccurrencesOfString:textToRemove withString:@""]; }