Fix invalid string access

Change-Id: Ic83af0549a88b8debfdf945853fa42e1d28e5869