Fix the spacing that appeared after pasting