Improved descriptor parsing by ignoring space and new line.