updated parser.c multi-char replacing text buffer