Represent string as bits. Do some bit manipulations