sometimes comparison fails because of whitespace. fixing it