Hospitals attempting to curb nursing shortages