First string function solved