This comment is hidden because it contains spoiler information about the solution
inline import? Damn. O.o
Important safety tip: When copy/pasting your code to refactor, do not hit enter!
The first value is what your function returned, and it seems it was wrong. Print the input, check why your code fails.
I was able to pass 96 of the test cases except 3. I got the following error:
 should equal 'invalid string'
The instruction state: "If the string is smaller than two characters or longer than 100 characters, the function should return "invalid string"."
Is there something I'm overlooking? Thanks!