Add qtrim_front, qtrim_back commands