Had error with antsCommandLineParser changing my filenames which included brackets. Now only replaces open brackets at start of each argument and close brackets at end of each argument.