Function F_RemovePrefix(s As String) As String
  F_RemovePrefix = mid(s,5)
End Function
But as a function it's unnecessarily complicated

this would do as well

if left(s,4)="\\?\" then s = mid(s,5)