Add lines to escape provided tag string with regexp-quote