remove trailing spaces in example code