safename = str => {
  return str.replace(/\s/g, '-').replace(/[^a-zA-Z0-9[\]_-]/g, '')
}
Make strings safe to be used as classes

@param  {string} str string to be converted
@return {string}     converted string