register string to hourminute converter