removes unnecessary brackets from license