make sure the type is a string