only one hyphen was replaced

The replace method only replaces the first occurence, so I changed it to regular expression.
Merge pull request #5 from drvic10k/pull-2

only one hyphen was replaced