Fixed issue raised by strings with curly braces