replace continuous space with single space