diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/Author.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/Author.java index 13cf360..ec7ad3a 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/Author.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/Author.java @@ -124,7 +124,8 @@ public class Author { if (firstName.isEmpty()) { this.firstName = null; } else { - this.firstName = firstName; + // Capitalize the first letter + this.firstName = firstName.substring(0,1).toUpperCase() + firstName.substring(1); } } @@ -136,7 +137,8 @@ public class Author { if (lastName.isEmpty()) { this.lastName = null; } else { - this.lastName = lastName; + // Capitalize the first letter + this.lastName = lastName.substring(0,1).toUpperCase() + lastName.substring(1); } }