l-snippet : rewrite func about str