Jag har en vän vid namn Tom.

English Translation

I have a friend named Tom.

most important phrase here is “vid namn” meaning “by name”