Changed message keys to use error as a common prefix
Changed internal implementation to String[] to make it easier to use later on