string delemiter function for assigment 2 bonus