Fixed issue with StringParser

Bad functionality of string parser fixed.