The function applies to all strings, but it does not apply to non-string inputs.

Please let me know if you have any further questions or if you'd like me to run additional tests.