completed my title-case string function.