You can try
number = [number stringByReplacingOccurrencesOfString:@"." withString:@""];
to remove the dots from the resulted string.
or if there is any possibilities of other special characters use below code
NSCharacterSet *onlyAllowedChars = [[NSCharacterSet characterSetWithCharactersInString:@"0123456789"] invertedSet];
number = [[number componentsSeparatedByCharactersInSet:onlyAllowedChars] componentsJoinedByString:@""];