why not just pass a single arg to validateAndReturnModuleType(..), e.g.:

````
validateAndReturnModuleType(value.substring(0, colonIndex));
````