replace space to underscore in column name
refactored opts