added method for strings