Dynamic text character recognition

Is there a way for flash to return a specific character from a string into dynamic text.

Example:

var headline = "kirupa"

character.text = 5th letter of headline

trace(character.text);


Then it would output the letter p, because it’s the fifth letter.