Binary Check

Fixed binary conversion. Added check for binary string.