- s = e.name;
- if(filter)
- {
- if(substring(s, 0, strlen(filter)) != filter)
- continue;
- s = substring(s, strlen(filter), strlen(s) - strlen(filter));
- }
- print(strcat(" ", s ,"\n"));
- ++i;
+ if (!startsWith(s, filter)) continue;
+ s = substring(s, strlen(filter), strlen(s) - strlen(filter));