Before revision: Long hair was fashionable during the Victorian era, so the cap kept the nurse's hair up and out of her face, as well as keeping it from becoming soiled.
After revision: Longhair was fashionable during the Victorian era, so the cap kept the nurse's hair up and out of her face, as well as keeping it from becoming soiled.