removes spaces for slug titles