Use `for(String s : variableCategories)` instead of calculating list size in each iteration