made sed faster and less stupid

maybe removing ^ and $ makes it even faster? not sure...