Broke out string error and message handling into functions