Parse num string to int