remove spaces and covert indention to spaces