convert str to srt format