Fixed Extended Bit length issue

fix problem where binary strings would have an extra 5 '0's on the end