fixing variable quoting in strings