Fix bug in Application parameter parsing

Using String.split(), we cannot deal with parameters whose value includes the character '='. Switch to String.indexOf().