Smart string pasting with SmartPaster