How to disconnect 1 string to get 2?

For example i have a string:

username-id (testuser-20)

and i want to get 2 strings:

string username and string id

how to do this?