Adding more changes for migrations

REGEX security changing ^ to \A and $ to \z

Some typo errors, not caught earlier