I found the issue. Just thought I'd post this incase anyone has the same issue.
The users inputted their author name with a space after the last character in the name. This caused the issue. I just added a .trim() method to the end of my variable that parsed the author input in my route that added posts to the database. This has resolved the problem.
// Add entry to database
app.post("/submit", async (req, res) =>{
let author = req.body.author.trim();
Thanks