[feat] improve string splitting, formatting in some special cases