Made the black string substitution less quick and dirty. Cleaned up the template a bit.