Whitespace replacement and code formatter