Added helper function to deal with mod strings