How to remove hexadecimal characters from NSString
I am facing one issue related some hexa value in string, i need to remove hexadecimal characters from NSString. The problem is when i print object it prints as "BLANK line". And in debug mode it shows like : So how can i remove it from the string? EDIT Triming whitespace : result of NSLog is : 2015-12-14 15:37:10.710 MyApp [2731:82236] tmp :'' Database: Earlier question: how to detect garbage string value in ios? As your dataset clearly has garbage values, You can use this method to check if your string is valid or not. Define your validation criteria and simply don't entertain the values