Show/Hide menu item with data-label in Local language

Hi,

Please see the below code. It is hiding/showing two menu item based on a document ‘exists’ or ‘does not exist’. System is bi-lingual i.e. English and Bengali. Therefore, I have added condition/code for data-label checking in local language. However, it is not working for Bangla language, but working for English.

Please advise.