moved parse_string to utils