Bugfix - string next to closing bracket causing problems