Substituted String by Char arguments in String.indexOf() calls for single-char strings (PMD report).

Signed-off-by: John May <john.wilkinsonmay@gmail.com>