add router
add router and fix bug in  utils.trim