Trim a few unnecessary characters