Fix bug that keeps adding whitespace to name