Hi All, I'm trying to write out some link/action button text that starts with a "[". However, no matter what I do, its printing as "NaN". Huh? No kidding is not a number, duh!. It is driving me nuts. Any advice would be appreciated. Thank you! The desired output(without entities): [@{ repeating_spell-1_-LjIvduM5HQUE-NdoYNr_spellname}](~Albido Puddifoot|repeating_spell-1_-LjIvduM5HQUE-NdoYNr_spell) Current output: NaN@{repeating_spell-1_-LjIvduM5HQUE-NdoYNr_spellname}](~Albido Puddifoot|repeating_spell-1_-LjIvduM5HQUE-NdoYNr_spell) Here's what I've tried: const ch = function ( c ) { var entities = { '@' : '#64' , '{' : '#123' , '|' : '#124' , '}' : '#125' , '#' : '#13' , '[' : '#91' }; if ( _ . has ( entities , c ) ){ return ( '&' + entities [ c ]+ ';' ); } return '' ; }; lvlText += ch ( '[' )+ ch ( '@' )+ ch ( '{' )+ entry + "_spellname}](~" + automateObj . charactername + "|" + entry + "_spell) " ;