a whole bunch of nonsense to get nicer strings