check if string is binary