I am trying to verify the my string only contains the following values, '\n, '.', and 'o'. They do not all need to be there, but if anything outside of those characters is included my function should return false.
I have one string that does include these characters, but it also includes '0'. With my function though, this returns to true.
I am primarily having issues with the first line, all others work as expected. I am not able to use regex so an alternative would be greatly appreciated!