Fix bug with parsing causing strings that started with a template string - like "~~someParam~~..." to fail to be parsed