Switch to #chomp, #chop was cutting off last char