$INVALID_STRING = quotemeta q; $STRING_TO_EXECUTE = "java myprogram -opt1 ABC -opt2 $INVALID_STRING";