Resolve "Implicit string to int conversion" notice