refactor method
convert to QString automatically
update examples