Added this function for handling iOS string.