convert the result to string
add test cases