Conversion functions from string to int and vice versa.