Updated example code to use slist 

Updated example code to use slist instead of using a string.
Merge pull request #910 from esoterick/master

Update: meta example code to use slist
fix laterthan, Redmine #6530