added string function tu getBeans