Small bug fix
Fixed chomp not working with any substring that isn't the first.