Use the timecode/timespan features. Trust me, I’ve tried to do what you are doing - using the timespan/timecode variables is the only sane way to work.
They seem a little weird at first but it saves you from having to do any conversions and once you understand the nodes it is dead easy to use.
From timespan you can just use “as timespan” and this autoconverts to string format.