This loop inserts the keyword at the start of the encoded string
for ( let i = 0 ; i < key . length ; i ++ ) { if ( key [ i ] . charCodeAt ( 0 ) >= ' ' . charCodeAt ( 0 ) && key [ i ] . charCodeAt ( 0 ) <= ' ' . charCodeAt ( 0 ) ) {