adding MaxSize on string to avoid error for string type