adding min and max characters fields, turning things into integers if it makes sense