Changed and optimised docstring edit process