minor code refactor in TimeMathParser