removed branch that never gets executed

The branch of code above does the exact same thing and tests for both strings and binary.