                         break;
                     case RENDITION_STATE_READSIMPLEVALUE:
                         if (c == ",") {
-                            variables[key] = value;
+                            variables[StringUtil.trim(key)] = value;
                             key = "";
                             value = "";
                             state = RENDITION_STATE_READKEY;

    import org.mangui.hls.model.Level;
    import org.mangui.hls.utils.DateUtil;
    import org.mangui.hls.utils.Hex;
    import org.mangui.hls.utils.StringUtil;

    CONFIG::LOGGING {
        import org.mangui.hls.utils.Log;

                        break;
                    case STATE_READQUOTEDVALUE_END:
                        if (c == ",") {
                            variables[StringUtil.trim(key)] = value;
                            key = "";
                            value = "";
                            state = RENDITION_STATE_READKEY;
