Fixed out of bounds string access