string to int and vice versa wethods