Reformatory

youth detention center or adult correctional facility popular during the late 19th and early 20th centuries

A reformatory, or school reformatory, is a jail used for young people (mostly teenagers) in the 1800s and 1900s.