Alternative solution to prevent sizeof on strings.