Adding function to remove characters