Remove escape character processing, simplify variable parsing logic