allow replacing of multiple spaces