I defined a string in Java with a single letter. When I tried to fetch the substring at index 1, I see empty string instead of a null pointer exception. What is causing this