Adding a helper method so that it's easy to remove unwated characters from a string before training/validation