strip \n when print

Signed-off-by: Trần Ngọc Quân <vnwildman@gmail.com>