Consistent output mechanism and add redundant whitespace removal rules