cuttext ('gedit', 'txtName', 1, 3)
This is to cut the text from the startindex position till the endindex in the 'txtName' field.