Now replaces consecutive spacing, as well as deletes the first and last spacing.