Changed the extern and declaration of substring and errorMessage.
Split the error related sources.
Merge pull request #3 from jwchong93/master

Split errorMessage from stringObject