Fixed parsing of standalone `$` characters in strings.