fixing whitespace, single quotes and such