Revert "Only remove leading spaces"

This reverts commit f5058aad0c75a804ec399b2b784599dab7d4336e.