removed ^ and $ in regex