move str-to-inputbit to separate module

* will be useful for the input simulator parser