Hmm i think i should have done this.
l = input.size - 1
(0..l).each do |i|
  if input[i] != input[l-i]