changing regex to take spaces or sub categories in trends