Implementation of FieldsN and FieldsFuncN, missing functions from the strings package.