export class StringUtil { public static StringContainsSeparatedWord ( str , wordRegExString , ignoreCase = false ) { const regExp = new RegExp ( "( |^)" + wordRegExString + "([ .]|$)" , ignoreCase ? "i" : undefined ) ; return regExp . test ( str ) ; } }