Returning nil instead of string when no more messages