Convert string to int