Fixed bug caused by comparing against too short a string.