combine string methods to one line