Add helper functions for trailing whitespace and commenting out blocks