Cleanup strings

Could we put the rules from stackoverflow inline here, please? Having to go to SO to see them (particularly if reading in source/text form) is a pain.