NSString *s = @"0800 444 333";
As you can see, this string has 2 white-spaces in the middle.
My questions is, how do I get rid of them so the string can become:
s = @"0800444333"
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This can be accomplished with simple string formatting. Here’s an example:
See the NSString Class Reference for more details and options.
To further simplify, this line can also be written like this: