Fix StringIndexOutOfBoundsException in SettingsActivity
Code style