Add trim in prj parser

Add trim in prj parser to prevent errors from unexpected leading and trailing whitespace.