Thank you Peter for help. The reason why it did not work was the fact that findall function required CRLF among lines