add strToInt method