Fixed Escape Recognition.

The issue was with checking for end of the input string. Since memmove was used to remove escaped characters, the end address of the input string was changing. The check for end of string now checks for '\0' instead of comparing addresses.