delete space before each ignored pattern