removed trailing ] in string