refactor
make it a string class method