Correctly escape string when wrapping in syntax