Added more logic so that you can use trigger at the start of a newline even when start_with_space is true