adding string methods to model