You can parse the filename using regex. This will return you the integer you're interested in.
Then look up the corresponding name in your array and write to a new file with the new name
If you know that the number after the '-' is the only number in the whole string you can simply use "\d" as your regex expression.