nl_tokens: Trims a single slash from the end of a string if present .
pl_tokens: function trimSlash ( string ) { if ( typeof string !== 'string' ) { return string ; } if ( <mask> . length > 0 && string . charAt ( string . length - 1 ) === '/' ) { return string . slice ( 0 , string . length - 1 ) ; } return string ; }