updated todo7 function to accept non- str values and create tests to test for this