Passing a string to a function/sub

Strings are evil. Don't use them.

Whenever possible, use character arrays (char *).