You are using string comparison to compare chars.

(s.equals('1')) should be (s.equals("1)) etc. Right now, it's false.