Trimg the last space.