Moved code out of help function in string handlers