Helper function to parse text. Use zero width spaces for leading whitespace in IE.