added helper method to remove special characters