remove undesired spaces