change value.strip to value.chomp!

use chomp to avoid removing significant whitespace