Removed unnecessary sed with grep caption groups