String.chomp maintains trailing carriage return

baby steps - let me know if this change looks good.