Remove trailing space from permalink