Added strinToInt function.