Such railway policemen shall, when on duty, severally wear a metallic shield with the words "railway policeman" and the name of the corporation for which appointed inscribed thereon, and said shield shall always be worn in plain view, except when acting as detective.