Prefer String#chomp over String#sub