Raise ValueError instead of exception. Also raise an exception when the string is not a valid element symbol and make small changes to the exception text