Ruby’s String#chop removes one character unconditionally from the end of a string. It differs from chomp, which removes a matching ending only when its target is present. section 8.1.5
Remove the final character
"David A. Black".chop returns "David A. Blac". The final character is removed even though it is not a newline or other specified substring. section 8.1.5
