better conversion between square and string