Some refactoring on string and details_activity