write String to Integer (atoi)