Reverting the space at the end