Rearranged the getString method to protect against null values.
Trying a different approach with messages.yml