String.substring(int) gives you the substring from the index to the end, inclusive. Calling that method with an index of 0 will return the same String.
Suppress false positives by adding the suppression annotation @SuppressWarnings("SubstringOfZero")
to the enclosing element.