Fixed nesting searches
Added escape sequence parsing