String function

Added a simple string function.