updated regex for $translate. There were problem with space between bracket and quotation mark.