another shot at traling whitespaces (previous one was not always working)