And if you think they are equal and the "eq" operator says they are not, then it's time for some debugging. Perhaps there is some white-space at the end of one of the strings which is not at the end of the other. Perhaps there are upper/lower-case differences which you didn't notice, or extra white-space in the middle of one.
And remember that HTML (which is what you will be generating) hides a lot of the white-space you put in it. Don't let that interfere with your debugging.