adding trim to the strings

Signed-off-by: Rocky Zhang <zhangyan.hit@gmail.com>