Add StringIndexOutOfBoundsException and use it in String