fix uptime string util func