Watch out for String#delete
Using String#delete
can be confusing as it removes occurrence of each character that you include in a string that is passed as argument.
Ex.
2.5.1 :001 > 'https://test.heroku.com'.delete('https://')
=> "e.eroku.com"
Prefer using String#sub
or String#gsub
instead.