To binary string implementation