Fix mistake: wrong use of string comparison