Several of the solutions posted should work.  Time for a sanity check:
Are your sure that the _input_ is what you think it is?

Jim