use formattedString
add unit test and let it work just fine