remove space on start and end striong ruby code example Example: ruby remove whitespace beginning and end ' str '.strip # => 'str'