code for sec2activity and whitespaces

Signed-off-by: Liew Zhao Wei <zhaoweiliew@gmail.com>