bug in resolveToString - wasn't removing brackets