modify leetcode atoi