Fixed bug in string comparison. Original Fix by Shamil CM