Replacing underscores with fewer underscores