add class name to string