put rewrite

Better compatibility with cross string output
Issue 10571 - formattedWrite error with delegate and string
Further improve put
Fix typos
Merge pull request #1569 from monarchdodra/putFix3

Put fix 3