get input text method