remove some redundant leading spaces