Fixed filtering strings to forum to prevent errors

Added logic to prevent infinite loops