Pick up where you left off
Separated removing whitespace to another function - called from multiple places.