[Common] Moved StringToArray function to utils and applied auto-format