Fixed issue when splitting time string