Code entering if statement when it shouldn't

The Serial Input Basics tutorial on this forum is a pretty good introduction.