finishes getText method for formelement class