updated map command to use string.match and work with dash