gid String to int.