Remove multiple spaces and new lines inside of String November 13, 2022 by Tarik check out Rails squish method: http://apidock.com/rails/String/squish