fix str check