Replaced use of strcat and strchr.

Replaced strcat with string and strchr with search.
Merge pull request #5 from ncollins/master

Replaced deprecated string functions.