[DDC-2668] Fix trim leading zero string

http://www.doctrine-project.org/jira/browse/DDC-2668