remove unneccessary spaces