replace explanation string format function logic with `thread-last`