{"action":"created","comment":{"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments/168971889","pull_request_review_id":97420634,"id":168971889,"diff_hunk":"@@ -22,11 +22,29 @@\n      * @throws IllegalValueException if given name string is invalid.\n      */\n     public Name(String name) throws IllegalValueException {\n-        String trimmedName = name.trim();\n-        if (!isValidName(trimmedName)) {\n+        String capitalizedName = capitalizeFirstCharForEveryWord(name.trim());\n+        if (!isValidName(capitalizedName)) {\n             throw new IllegalValueException(MESSAGE_NAME_CONSTRAINTS);\n         }\n-        this.fullName = trimmedName;\n+        this.fullName = capitalizedName;\n+    }\n+\n+    /**\n+     * Format name before adding into address book\n+     * (Capitalize first character of every word in name & the rest in lower case)\n+     *\n+     * @param name string argument\n+     * @return formatted name argument\n+     */\n+    private static String capitalizeFirstCharForEveryWord(String name) {\n+        String[] partOfName = name.split(\"\\\\s+\");\n+        String fullName = \"\";\n+        for(String word : partOfName){","path":"src/seedu/addressbook/data/person/Name.java","position":24,"original_position":24,"commit_id":"25ed65ca4fb1da24bab5790db98940aa0999b43f","original_commit_id":"25ed65ca4fb1da24bab5790db98940aa0999b43f","user":{"login":"cjianhui","id":31098608,"avatar_url":"https://avatars1.githubusercontent.com/u/31098608?v=4","gravatar_id":"","url":"https://api.github.com/users/cjianhui","html_url":"https://github.com/cjianhui","followers_url":"https://api.github.com/users/cjianhui/followers","following_url":"https://api.github.com/users/cjianhui/following{/other_user}","gists_url":"https://api.github.com/users/cjianhui/gists{/gist_id}","starred_url":"https://api.github.com/users/cjianhui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjianhui/subscriptions","organizations_url":"https://api.github.com/users/cjianhui/orgs","repos_url":"https://api.github.com/users/cjianhui/repos","events_url":"https://api.github.com/users/cjianhui/events{/privacy}","received_events_url":"https://api.github.com/users/cjianhui/received_events","type":"User","site_admin":false},"body":"Just a minor comment. Java reserved words such as `for` should always be followed by a white space. You may refer to the Layout section in our [coding standards](https://oss-generic.github.io/process/codingStandards/CodingStandard-Java.html).","created_at":"2018-02-19T00:10:44Z","updated_at":"2018-02-19T00:11:55Z","html_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/479#discussion_r168971889","pull_request_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/479","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments/168971889"},"html":{"href":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/479#discussion_r168971889"},"pull_request":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/479"}}},"pull_request":{"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/479","id":169034051,"html_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/479","diff_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/479.diff","patch_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/479.patch","issue_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/479","number":479,"state":"open","locked":false,"title":"[W5.11][F14-A1] Cheong Jie Ning","user":{"login":"Aquarinte","id":15257617,"avatar_url":"https://avatars1.githubusercontent.com/u/15257617?v=4","gravatar_id":"","url":"https://api.github.com/users/Aquarinte","html_url":"https://github.com/Aquarinte","followers_url":"https://api.github.com/users/Aquarinte/followers","following_url":"https://api.github.com/users/Aquarinte/following{/other_user}","gists_url":"https://api.github.com/users/Aquarinte/gists{/gist_id}","starred_url":"https://api.github.com/users/Aquarinte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aquarinte/subscriptions","organizations_url":"https://api.github.com/users/Aquarinte/orgs","repos_url":"https://api.github.com/users/Aquarinte/repos","events_url":"https://api.github.com/users/Aquarinte/events{/privacy}","received_events_url":"https://api.github.com/users/Aquarinte/received_events","type":"User","site_admin":false},"body":"- Modified 'find' command to be case-insensitive.\r\n\r\n- Updated UserGuide, I/O tests and JUnit test ","created_at":"2018-02-14T06:49:21Z","updated_at":"2018-02-19T00:11:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa8f5fb9d7f3126db03a315720d75986f2f20a45","assignee":{"login":"okkhoy","id":1023494,"avatar_url":"https://avatars1.githubusercontent.com/u/1023494?v=4","gravatar_id":"","url":"https://api.github.com/users/okkhoy","html_url":"https://github.com/okkhoy","followers_url":"https://api.github.com/users/okkhoy/followers","following_url":"https://api.github.com/users/okkhoy/following{/other_user}","gists_url":"https://api.github.com/users/okkhoy/gists{/gist_id}","starred_url":"https://api.github.com/users/okkhoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okkhoy/subscriptions","organizations_url":"https://api.github.com/users/okkhoy/orgs","repos_url":"https://api.github.com/users/okkhoy/repos","events_url":"https://api.github.com/users/okkhoy/events{/privacy}","received_events_url":"https://api.github.com/users/okkhoy/received_events","type":"User","site_admin":false},"assignees":[{"login":"okkhoy","id":1023494,"avatar_url":"https://avatars1.githubusercontent.com/u/1023494?v=4","gravatar_id":"","url":"https://api.github.com/users/okkhoy","html_url":"https://github.com/okkhoy","followers_url":"https://api.github.com/users/okkhoy/followers","following_url":"https://api.github.com/users/okkhoy/following{/other_user}","gists_url":"https://api.github.com/users/okkhoy/gists{/gist_id}","starred_url":"https://api.github.com/users/okkhoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okkhoy/subscriptions","organizations_url":"https://api.github.com/users/okkhoy/orgs","repos_url":"https://api.github.com/users/okkhoy/repos","events_url":"https://api.github.com/users/okkhoy/events{/privacy}","received_events_url":"https://api.github.com/users/okkhoy/received_events","type":"User","site_admin":false},{"login":"cjianhui","id":31098608,"avatar_url":"https://avatars1.githubusercontent.com/u/31098608?v=4","gravatar_id":"","url":"https://api.github.com/users/cjianhui","html_url":"https://github.com/cjianhui","followers_url":"https://api.github.com/users/cjianhui/followers","following_url":"https://api.github.com/users/cjianhui/following{/other_user}","gists_url":"https://api.github.com/users/cjianhui/gists{/gist_id}","starred_url":"https://api.github.com/users/cjianhui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjianhui/subscriptions","organizations_url":"https://api.github.com/users/cjianhui/orgs","repos_url":"https://api.github.com/users/cjianhui/repos","events_url":"https://api.github.com/users/cjianhui/events{/privacy}","received_events_url":"https://api.github.com/users/cjianhui/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":784873013,"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/labels/team.A1","name":"team.A1","color":"ededed","default":false},{"id":831807653,"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/labels/tutorial.F14","name":"tutorial.F14","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/479/commits","review_comments_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/479/comments","review_comment_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/479/comments","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/statuses/25ed65ca4fb1da24bab5790db98940aa0999b43f","head":{"label":"Aquarinte:W5.11","ref":"W5.11","sha":"25ed65ca4fb1da24bab5790db98940aa0999b43f","user":{"login":"Aquarinte","id":15257617,"avatar_url":"https://avatars1.githubusercontent.com/u/15257617?v=4","gravatar_id":"","url":"https://api.github.com/users/Aquarinte","html_url":"https://github.com/Aquarinte","followers_url":"https://api.github.com/users/Aquarinte/followers","following_url":"https://api.github.com/users/Aquarinte/following{/other_user}","gists_url":"https://api.github.com/users/Aquarinte/gists{/gist_id}","starred_url":"https://api.github.com/users/Aquarinte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aquarinte/subscriptions","organizations_url":"https://api.github.com/users/Aquarinte/orgs","repos_url":"https://api.github.com/users/Aquarinte/repos","events_url":"https://api.github.com/users/Aquarinte/events{/privacy}","received_events_url":"https://api.github.com/users/Aquarinte/received_events","type":"User","site_admin":false},"repo":{"id":121477594,"name":"addressbook-level2","full_name":"Aquarinte/addressbook-level2","owner":{"login":"Aquarinte","id":15257617,"avatar_url":"https://avatars1.githubusercontent.com/u/15257617?v=4","gravatar_id":"","url":"https://api.github.com/users/Aquarinte","html_url":"https://github.com/Aquarinte","followers_url":"https://api.github.com/users/Aquarinte/followers","following_url":"https://api.github.com/users/Aquarinte/following{/other_user}","gists_url":"https://api.github.com/users/Aquarinte/gists{/gist_id}","starred_url":"https://api.github.com/users/Aquarinte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aquarinte/subscriptions","organizations_url":"https://api.github.com/users/Aquarinte/orgs","repos_url":"https://api.github.com/users/Aquarinte/repos","events_url":"https://api.github.com/users/Aquarinte/events{/privacy}","received_events_url":"https://api.github.com/users/Aquarinte/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Aquarinte/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/Aquarinte/addressbook-level2","forks_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/forks","keys_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/events","assignees_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/merges","archive_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/Aquarinte/addressbook-level2/deployments","created_at":"2018-02-14T06:13:55Z","updated_at":"2018-02-14T06:13:57Z","pushed_at":"2018-02-14T12:26:39Z","git_url":"git://github.com/Aquarinte/addressbook-level2.git","ssh_url":"git@github.com:Aquarinte/addressbook-level2.git","clone_url":"https://github.com/Aquarinte/addressbook-level2.git","svn_url":"https://github.com/Aquarinte/addressbook-level2","homepage":null,"size":3299,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nus-cs2103-AY1718S2:master","ref":"master","sha":"23644b1848abac9a973179ad015e20b7292394f5","user":{"login":"nus-cs2103-AY1718S2","id":34544003,"avatar_url":"https://avatars0.githubusercontent.com/u/34544003?v=4","gravatar_id":"","url":"https://api.github.com/users/nus-cs2103-AY1718S2","html_url":"https://github.com/nus-cs2103-AY1718S2","followers_url":"https://api.github.com/users/nus-cs2103-AY1718S2/followers","following_url":"https://api.github.com/users/nus-cs2103-AY1718S2/following{/other_user}","gists_url":"https://api.github.com/users/nus-cs2103-AY1718S2/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-cs2103-AY1718S2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-cs2103-AY1718S2/subscriptions","organizations_url":"https://api.github.com/users/nus-cs2103-AY1718S2/orgs","repos_url":"https://api.github.com/users/nus-cs2103-AY1718S2/repos","events_url":"https://api.github.com/users/nus-cs2103-AY1718S2/events{/privacy}","received_events_url":"https://api.github.com/users/nus-cs2103-AY1718S2/received_events","type":"Organization","site_admin":false},"repo":{"id":115011334,"name":"addressbook-level2","full_name":"nus-cs2103-AY1718S2/addressbook-level2","owner":{"login":"nus-cs2103-AY1718S2","id":34544003,"avatar_url":"https://avatars0.githubusercontent.com/u/34544003?v=4","gravatar_id":"","url":"https://api.github.com/users/nus-cs2103-AY1718S2","html_url":"https://github.com/nus-cs2103-AY1718S2","followers_url":"https://api.github.com/users/nus-cs2103-AY1718S2/followers","following_url":"https://api.github.com/users/nus-cs2103-AY1718S2/following{/other_user}","gists_url":"https://api.github.com/users/nus-cs2103-AY1718S2/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-cs2103-AY1718S2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-cs2103-AY1718S2/subscriptions","organizations_url":"https://api.github.com/users/nus-cs2103-AY1718S2/orgs","repos_url":"https://api.github.com/users/nus-cs2103-AY1718S2/repos","events_url":"https://api.github.com/users/nus-cs2103-AY1718S2/events{/privacy}","received_events_url":"https://api.github.com/users/nus-cs2103-AY1718S2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2","forks_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/forks","keys_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/events","assignees_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/merges","archive_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/deployments","created_at":"2017-12-21T13:56:37Z","updated_at":"2018-02-18T02:32:33Z","pushed_at":"2018-02-18T21:45:59Z","git_url":"git://github.com/nus-cs2103-AY1718S2/addressbook-level2.git","ssh_url":"git@github.com:nus-cs2103-AY1718S2/addressbook-level2.git","clone_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2.git","svn_url":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2","homepage":null,"size":3419,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":188,"mirror_url":null,"archived":false,"open_issues_count":445,"license":null,"forks":188,"open_issues":445,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/479"},"html":{"href":"https://github.com/nus-cs2103-AY1718S2/addressbook-level2/pull/479"},"issue":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/479"},"comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/issues/479/comments"},"review_comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/479/comments"},"review_comment":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/pulls/479/commits"},"statuses":{"href":"https://api.github.com/repos/nus-cs2103-AY1718S2/addressbook-level2/statuses/25ed65ca4fb1da24bab5790db98940aa0999b43f"}},"author_association":"NONE"}}
{"actor":{"display_login":"cjianhui"}}