find the index of next uppercase character, starting from index start and optionally ending at exclusive-index end