Look carefully at the code as posted above and compare it with the code in the IDE. Do you notice any italics or smileys in the IDE ?
Now edit your post to add code tags as requested in the 2 sticky threads above. This will prevent the code being mangled by the forum software.