Switch to the Pen Tool (P), create a 5px, vertical path and place it as shown in the second image. Make sure that this new path stays selected and focus on the Appearance panel (Window > Appearance). Remove the color from the fill, select the stroke, add a random color then simply click on that "Stroke" piece of text to open the Stroke fly-out panel. Set the Weight at 2px and check the Round Cap button