java.lang.indexoutofboundsexception%20setspan%20ends%20beyond%20length 0