First implementation, use string index