I have a string that looks like this. Thi string is taken from a file where each of the keys are in different lines.
languagesKnown = 'Mother-Tongue : Spanish OtherLanguages: English Major: German'
It can also look like
languagesKnown = 'Mother-Tongue: OtherLanguages: English Major: German'
I want to check which value is set to Mother-Tongue.
content:string[] = languagesKnown..split('\n')
gives me a string array, But I want to see if something is set to it or if it is empty like above.