Actually, I was reading parseDouble code, and figured that the implementation does a trim, so you are right let's not do it here for the consistency.