use more Twine to avoid string

Signed-off-by: xiehuc <xiehuc@gmail.com>
add bracket for expr()

Signed-off-by: xiehuc <xiehuc@gmail.com>
expr add ref

Signed-off-by: xiehuc <xiehuc@gmail.com>