limited the length of matched item only