Make mode a string in the LWRP