Replace custom string porcessing by standard functions from libc
We use custom implemented string processing methods. We can replace them by those from libc but we have to ensure we work with NULL temrinated strings. Based on !15 (comment 234370).
Edited by Miroslav Hanak