Fix length of string parsing, added try catch on webui parser