Would it be possible, that the string only contains HH or does that not make sense? In the old code it would have retrieved the HH and assummed MM to be empty and therefore 0.