Only create the span tag if string is present