Fixed a bug that ignore ':' character when parsing the string.