static String stateToString(RSAStates state) { return (state.toString()).isNotEmpty ? (state.toString()).substring(10) : ""; // deletes "RSAStates." at the beginning }