Fixing Grep regex errors