fixed bug with compare in string