refactored strings and some methods