Character substring and Array subscript parsing