Module chomp_chop
Source - chomp
- Removes one newline from the end of a string if it’s there, otherwise leaves it alone.
A newline is considered to be “\n”, “\r”, or “\r\n”.
- chop
- Removes the last character from a string.
If the string ends in “\r\n”, then removes both characters.