Made a helper function for making sure hz is a decimal string.