[ENH] Fix broken profiles-page due to the mixing of array and string values
Updated code to handle cases where ['value'] and ['default'] can be either a string or an array. This change ensures that both are properly converted to arrays of strings before comparison to avoid errors and unexpected behavior.