Reduce multiple contiguous spaces to a single one