Removing characters from extractor

removing a set of characters and the square brackets and their content