[formatter] handle string