move StringParser in a separate file