improved implementation

replaced string-matching approach by a simple array-pointer one