moved function out of where section to main function: getMaybeString