new checkStr implementation