removes final space