xint() and xstr() in Controller