convert text to int