Change string into integer