another a little faster solution

avoid two many copies between string

Signed-off-by: Wei Jin <wjin.cn@gmail.com>