Updated ProcessAdapter to include error thrown when given value begins with flag string. Included in tests in ProcessAdapterTest class