Added string to int function