Fixes "String is not a function" error.