improve string formatting