replace multiple continuous space characters with one space